package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.BasisWeatherMapper;
import com.ruoyi.domain.BasisWeather;
import com.ruoyi.system.service.IBasisWeatherService;

/**
 * 天气Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-05-24
 */
@Service
public class BasisWeatherServiceImpl implements IBasisWeatherService 
{
    @Autowired
    private BasisWeatherMapper basisWeatherMapper;

    /**
     * 查询天气
     * 
     * @param id 天气主键
     * @return 天气
     */
    @Override
    public BasisWeather selectBasisWeatherById(Long id)
    {
        return basisWeatherMapper.selectBasisWeatherById(id);
    }

    /**
     * 查询天气列表
     * 
     * @param basisWeather 天气
     * @return 天气
     */
    @Override
    public List<BasisWeather> selectBasisWeatherList(BasisWeather basisWeather)
    {
        return basisWeatherMapper.selectBasisWeatherList(basisWeather);
    }

    /**
     * 新增天气
     * 
     * @param basisWeather 天气
     * @return 结果
     */
    @Override
    public int insertBasisWeather(BasisWeather basisWeather)
    {
        return basisWeatherMapper.insertBasisWeather(basisWeather);
    }

    /**
     * 修改天气
     * 
     * @param basisWeather 天气
     * @return 结果
     */
    @Override
    public int updateBasisWeather(BasisWeather basisWeather)
    {
        return basisWeatherMapper.updateBasisWeather(basisWeather);
    }

    /**
     * 批量删除天气
     * 
     * @param ids 需要删除的天气主键
     * @return 结果
     */
    @Override
    public int deleteBasisWeatherByIds(Long[] ids)
    {
        return basisWeatherMapper.deleteBasisWeatherByIds(ids);
    }

    /**
     * 删除天气信息
     * 
     * @param id 天气主键
     * @return 结果
     */
    @Override
    public int deleteBasisWeatherById(Long id)
    {
        return basisWeatherMapper.deleteBasisWeatherById(id);
    }
}
